package com.koocloud.electroplatemanage.auth.mapper;

import com.koocloud.electroplatemanage.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;




@Mapper
public interface UserDao {

    /**
     * 登录的时候，根据用户名获取用户实体
     *
     * @param userName
     * @return
     */
    @Select("select * from user where username=#{userName}")
    public User getUserByUserName(String userName);
}
